package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallRefundPriceDO;
import com.starlink.model.request.MallRefundPriceRequest;
import com.starlink.model.vo.MallRefundPriceVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallRefundPriceDtoMapper {

    MallRefundPriceDtoMapper INSTANCE = Mappers.getMapper(MallRefundPriceDtoMapper.class);

    /**
    * DO to VO
    * @param mallRefundPriceDO
    * @return
    */
    MallRefundPriceVO do2VO(MallRefundPriceDO mallRefundPriceDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallRefundPriceDO request2DO(MallRefundPriceRequest request);
}
